/**
 * jims
 */
package com.jims.master.modules.operation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.operation.entity.OperationStaffApply;
import com.jims.master.modules.operation.dao.OperationStaffApplyDao;

/**
 * 手术申请人员Service
 * @author DT
 * @version 2017-04-11
 */
@Service
@Transactional(readOnly = true)
public class OperationStaffApplyService extends CrudService<OperationStaffApplyDao, OperationStaffApply> {
	@Autowired
	OperationStaffApplyDao operationStaffApplyDao;
	public OperationStaffApply get(String id) {
		return super.get(id);
	}
	
	public List<OperationStaffApply> findList(OperationStaffApply operationStaffApply) {
		return super.findList(operationStaffApply);
	}
	
	public Page<OperationStaffApply> findPage(Page<OperationStaffApply> page, OperationStaffApply operationStaffApply) {
		return super.findPage(page, operationStaffApply);
	}
	@Transactional(readOnly = false)
	public OperationStaffApply findIds(OperationStaffApply operationStaffApply){
		return operationStaffApplyDao.findIds(operationStaffApply);
	}
	@Transactional(readOnly = false)
	public int save(OperationStaffApply operationStaffApply) {
		return super.save(operationStaffApply);
	}
	
	@Transactional(readOnly = false)
	public int delete(OperationStaffApply operationStaffApply) {
		return super.delete(operationStaffApply);
	}

	@Transactional(readOnly = false)
	public int delStaffApply(String scheduleId) {
		return operationStaffApplyDao.delStaffApply(scheduleId);
	}
}